import unittest


class TestDict(unittest.TestCase):
    def setUp(self):
        print('before')

    def test_key(self):
        d = {'a':2,'b':'test'}
        print('doing test')
        self.assertEqual(d.get('a'), 2)
        self.assertEqual(d.get('b'), 'test')
        self.assertTrue(isinstance(d, dict))

    def tearDown(self):
        print('after')

if __name__ == 'main':
    unittest.main()